using System.Collections.Generic;
using DAL;
using Entity;

namespace Business
{
	public class OutBillDetailBusiness
	{
		#region code CMS
        public static List<OutBillDetail> GetOutBillDetailList()
        {
		    var result = FreshCmsDataAccessProvider.OutBillDetail.GetOutBillDetailList();
		    return result;
        }

		public static List<OutBillDetail> GetOutBillDetailListByPaging(int pageIndex, int pageSize, ref int totalRecord)
        {
		    var result = FreshCmsDataAccessProvider.OutBillDetail.GetOutBillDetailListByPaging(pageIndex, pageSize, ref totalRecord);
		    return result;
        }

        public static OutBillDetail GetOutBillDetailById(int billDetailID)
        {
		    var result = FreshCmsDataAccessProvider.OutBillDetail.GetOutBillDetailById(billDetailID);
            return result;
        }

        public static int InsertOutBillDetail(OutBillDetail OutBillDetail)
        {
            var result = FreshCmsDataAccessProvider.OutBillDetail.InsertOutBillDetail(OutBillDetail);
            return result;
        }

        public static int UpdateOutBillDetail(OutBillDetail OutBillDetail)
        {
            var result = FreshCmsDataAccessProvider.OutBillDetail.UpdateOutBillDetail(OutBillDetail);
            return result;
        }

        public static int DeleteOutBillDetail(int billDetailID)
        {
            var result = FreshCmsDataAccessProvider.OutBillDetail.DeleteOutBillDetail(billDetailID);
            return result;
        }
		#endregion
	}
}